package io.gitee.hefren.hhconfig.client.service;

import com.google.common.base.MoreObjects;
import io.gitee.hefren.hhconfig.client.beans.ConfigsMeta;

import java.util.Map;

/**
 * @Date 2024/6/1
 * @Author lifei
 */
public class ChangeEvent {
    private ConfigsMeta configsMeta;
    private Map<String, String> configs;

    public ChangeEvent() {
    }

    public ChangeEvent(ConfigsMeta configsMeta, Map<String, String> configs) {
        this.configsMeta = configsMeta;
        this.configs = configs;
    }

    public ConfigsMeta getConfigsMeta() {
        return configsMeta;
    }

    public void setConfigsMeta(ConfigsMeta configsMeta) {
        this.configsMeta = configsMeta;
    }

    public Map<String, String> getConfigs() {
        return configs;
    }

    public void setConfigs(Map<String, String> configs) {
        this.configs = configs;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(ChangeEvent.class)
                .add("configsMeta", configsMeta)
                .add("configs", configs)
                .toString();
    }
}
